package com.yq.testmodule

import android.widget.Button
import base.BaseActivity
import com.alibaba.android.arouter.facade.annotation.Route
import com.yq.skinlib.manage.SkinCompatManager
import config.TEST_SKIN
/**
 * @author: user
 * @date: 2023/1/6
 */
@Route(path = TEST_SKIN)
class TestSkinActivity : BaseActivity() {

    override fun initLayout() = R.layout.activity_test_skin

    override fun initView() {
        findViewById<Button>(R.id.btnChange).setOnClickListener{
            SkinCompatManager.getInstance().loadNightSkin()
        }

        findViewById<Button>(R.id.btnRestore).setOnClickListener {
            SkinCompatManager.getInstance().restoreDefaultTheme(null)
        }

        findViewById<Button>(R.id.btnLoadSdCard).setOnClickListener {
//            SkinCompatManager.getInstance().loadSkin()
        }
    }

    override fun initData() {

    }



}